package com.hbzd.protection.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sword.wechat4j.user.TemData;
import org.sword.wechat4j.user.UserManager;

import com.hbzd.protection.entity.Giscarjb;
import com.hbzd.protection.service.GiscarjbServiceImpl;


@Controller
@RequestMapping("/giscarjb")
public class GiscarjbController {
	
	@Resource
	private GiscarjbServiceImpl giscarjbServiceImpl; 
	
	@RequestMapping("/listCars")
	public String listCars(String OwnerSimNum,String openid,HttpServletRequest request, HttpServletResponse response, ModelMap modalMap) {
		List<Giscarjb> list = giscarjbServiceImpl.listCars(OwnerSimNum);
		modalMap.put("openid", openid);
		modalMap.put("list", list);
		//车辆列表
		return "/index";
	}
	
}
